package com.tianyi.delegate;

public class TestDelegate {

	public static void main(String[] args) {
		
		Coucher coucher=new Coucher(new GoalKeeperA());
		//好像是教练在守门，实际上调用的是守门员的keep方法
		coucher.keep();
	}

}
